package com.konsung.util.constant;

/**
 * 常量类
 */
public interface GlobalConstant {
    String APP_CONFIG = "app_config"; //app首选项的参数
    String AIDL_SERVICE_NAME = "com.konsung.aidl";
    String CLOUD_ADDRESS = "cloudAddress"; //云平台地址
    String URT_ITEM = "urtItem"; //尿常规设备配置
    String URT_SETTING = "urtSetting"; //尿常规项配置 11-13-14项
    String MEASURE_CONFIG = "measureConfig"; //测量项配置（身高体重）
    String QUICK_CONFIG = "quickConfig"; //快速检测配置（身高体重）
    String CURRENT_PATIENT = "currentPatient"; //当前居民key值
    String DEVICE_CONFIG_TAG = "device_config"; //记录系统信息的tag
    // 设备配置信息
    // 根据协议对应关系如下：bit0-KSM5;bit1-EmpUi;bit2-GA7;bit3-IDA007;
    // bit4-HTD8819;bit5-TH809;bit6-BeneCheckGlu;bit7-BeneCheck;bit8-OGM111;
    // bit9-URIT-31;bit10-Mission U120;bit11-HemoCue WBC;bit12-HemoCue Hb;
    // bit13-URIT-12;bit14-Mission Hb;bit15-艾康血脂
//    int DEVICE_CONFIG = 0x189F;
    int DEVICE_CONFIG = 0xFFFFFFFF;

    /**
     * 数据库字段名
     */
    String IDCARD = "idcard";
    String NAME = "name";
    String SEX = "sex";
    String TYPE = "type";
    String ADDRESS = "address";
    String PICTURE = "picture";
    String CRIME_MEASURE_DATE = "crimeMeasureDate";
    String MEASURE_TIME = "measureTime";
    String UPLOAD_FLAG = "uploadFlag";
    String UUID = "uuid";
    String ADD_DATE = "addDate";
    String CRASHLOGPATH = "KonsungLog";

    int DATABASE_VERSION = 1; //数据库版本
    String DATABASE_NAME = "kunsong.db";
    String DATABASE_FILE = "/storage/emulated/0/Konsung/HealthFiles/Database/"; //数据库存放路径
    /**
     *尿常规网络数据的放大倍数，趋势数据统一为100
     */
    float FACTOR = 100f;
    int INT_FACTOR = 100;
    float SG_FACTOR = 1000f;
    // 模拟一次ECG测量时间10000(10s)
    int ECG_TIME = 10000;
    //根据APPDevice协议，上传值是10^6，显示值时10^9,需要先除以1000，再除以比例
    float WBC_FACTOR = 1000 * FACTOR;
    int INVALID_DATA = -1000; //无效趋势值

    /**
     * uri组装格式 content://com.konsung.factorymaintain/path
     */
    String SCHEME = "content://"; //统一抬头
    String AUTHORITY = "com.konsung.healthfile"; //对应包名
    String PATH = "path"; //数据类型 接口路径
    String SERVICE_SUFFIX = "serviceSuffix"; //数据类型 接口路径
    String CONFIG = "config"; //数据类型 配置参数
    //康尚云平台接口路径 --》厂家维护软件
    String AUTHORITY_UPLOAD_CLOUD = "content://com.konsung.factorymaintain/CloudAddress";
    //是否自动上传--》软件设置软件
    String AUTHORITY_AUTO_UPLOAD = "content://com.konsung.softwaresetting/AutoUpload";
    //第三方厂家数据接口路径--》软件设置软件
    String AUTHORITY_UPLOAD_THIRDPARTY = "content://com.konsung.softwaresetting/ServiceAddress";
    //第三方厂家数据接口后缀--》软件设置软件
    String AUTHORITY_UPLOAD_THIRDPARTY_EXIT = "content://com.konsung.softwaresetting/ServiceSuffix";
    //身份证是否强校验--》厂家维护软件
    String AUTHORITY_IDCARD_VERIFY = "content://com.konsung.factorymaintain/CheckIdCard";
    //获取设备配置项参数--》厂家维护软件
    String AUTHORITY_DEVICE_CONFIG = "content://com.konsung.factorymaintain/DevicesConfig";
    //获取身高体重是否配置--》厂家维护软件
    String QUICK_CHECK_HEIGHT_WIGHT_CONFIG = "content://com.konsung.factorymaintain/MeasureConfig";
    //获取尿常规测量项配置--》厂家维护软件
    String QUICK_CHECK_URT_SETTING = "content://com.konsung.factorymaintain/UrtConfig";
    //获取当前医生--》启动管理软件
    String CURRENT_DOCTOR = "content://com.konsung.startmanager/currentDoctor";
    //获取设备号存储--》厂家维护软件
    String DEVICE_CODE = "content://com.konsung.factorymaintain/Devices";
    String ICON = "user_icon";
    String UPDATE_MEASURE = "updateMeasure"; //更新测量数据
    String UPDATE_MEASURE_ID = "updateMeasureId"; //以id更新数据库
    String ADD_MEASURE = "addMeasure"; //添加测量数据
    String DELETE_MEASURE = "deleteMeasure"; //删除测量数据
    String QUERY_MEASURE_DATA = "queryMeasureData"; //查询当前居民未上传的最新测量数据
    String QUERY_MEASURE_DATA_NO = "queryMeasureDataNo"; //查询当前居民今天最新测量数据
    String QUERY_CURRENT_FIRST_MEASURE = "queryCurrentFirstMeasure"; //查询当前居民最新测量数据
    String QUERY_MEASURE_DATA_TEN = "queryMeasureData10";
    String QUERY_MEASURE_PEOPLE_REPORT = "queryMeasurePeopleReport";
    String QUERY_IDCARD_BEING = "queryIdcardBeing";
    String QUERY_NEW_MEASURE = "QueryNewMeasure";
    String ADD_ALL_MEASURE = "AddAllMeasure";
    String ADD_ALL_PATIENT = "AddAllPatient";
    String INSERT_CITIZEN = "insertCitizen"; // 插入居民信息


    String CLOUD_EXT = "/cloud/services/VillageHealthPort";

    String DEVICE_CODE_DEFAULT = "M0000"; //默认的设备号
    boolean IDCARD_CHECKOUT_DEFAULT = false; //身份证默认强校验


    int CURRENT_MEASURE = 10; //最新的测量记录
    String INTEFACE_VERSION = "1.0.0"; //接口控制版本
    String HEALTH_REPORT_NAME = "report.bmp";
    String HEALTH_REPORT_TWO = "report2.bmp";
    String HEALTH_REPORT_THREE = "report3.bmp";
    String HEALTH_ECG_NAME = "ecg.bmp";
    String APPID = "9cae36bdd9";
    long MIN_SPACE_FOR_APP = 1024 * 1024 * 1024;
    String UPGRADE_FOR_OLD_VERSION_1 = "UPGRADE_FOR_OLD_VERSION_1";
    String FLAG = "flag";

    int HTTP_SUCCESS = 10000;  //请求成功
    int HTTP_NO_HAVE = 00000;   //请求失败

    String CONFIG_DATA_CODE = "config_data_code"; //配置版本号key,为软件功能配置
    String DEFAULT_CONFIG_DATA_CODE = "0"; //默认版本号，为软件功能配置
    String APP_FIRST_INSTALL = "app_first_install"; //app默认第一次安装
    /**
     * 调用接口状态-失败
     **/
    String RESULT_CODE_FAIL = "00000";
    /**
     * 调用接口状态-成功
     **/
    String RESULT_CODE_SUCCESS = "10000";
    /**
     * 调用接口状态-主动提示(业务校验失败)
     */
    String RESULT_CODE_HINT = "20000";
    /**
     * 沭阳地区配置常量
     */
    String AREA_SHUYANG = "AREA_SHUYANG";
    /**
     * 代表采用这配置
     */
    String AVAILABLE_Y = "Y";

    /**
     * 接口调用成功标识
     */
    String SUCCESS = "10000";
}
